<!DOCTYPE html>
<html lang="en">
  <head>
    <title>WebRequest Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
  </head>
  <body>
    <a name="//apple_ref/swift/Class/WebRequest" class="dashAnchor"></a>
    <a title="WebRequest Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html"> Docs</a> (83% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html"> Reference</a>
        <img id="carat" src="../img/carat.png" />
        WebRequest Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
          <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/AJAXObjectDriver.html">AJAXObjectDriver</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Bytes.html">Bytes</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/CURL.html">CURL</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/s:C10PerfectLib6Cookie">Cookie</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Dir.html">Dir</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Encoding.html">Encoding</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/FastCGIServer.html">FastCGIServer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/File.html">File</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/HTTPServer.html">HTTPServer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ICU.html">ICU</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/JSONArrayType.html">JSONArrayType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/JSONDecode.html">JSONDecode</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/JSONDictionaryType.html">JSONDictionaryType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/JSONEncode.html">JSONEncode</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/JSONNull.html">JSONNull</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/s:C10PerfectLib10LogManager">LogManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MimeReader.html">MimeReader</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheEvaluationContext.html">MoustacheEvaluationContext</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheEvaluationOutputCollector.html">MoustacheEvaluationOutputCollector</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheGroupTag.html">MoustacheGroupTag</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheParser.html">MoustacheParser</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustachePartialTag.html">MoustachePartialTag</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustachePragmaTag.html">MoustachePragmaTag</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheTag.html">MoustacheTag</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MoustacheTemplate.html">MoustacheTemplate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NetNamedPipe.html">NetNamedPipe</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NetTCP.html">NetTCP</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/NetTCPSSL.html">NetTCPSSL</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/PageHandlerRegistry.html">PageHandlerRegistry</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/PerfectObject.html">PerfectObject</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/PerfectObjectHandler.html">PerfectObjectHandler</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/PerfectServer.html">PerfectServer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SQLite.html">SQLite</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SQLiteStmt.html">SQLiteStmt</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SessionManager.html">SessionManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SysProcess.html">SysProcess</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/UTF16Encoding.html">UTF16Encoding</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/UTF8Encoding.html">UTF8Encoding</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WebRequest.html">WebRequest</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WebResponse.html">WebResponse</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Global Variables.html">Global Variables</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:v10PerfectLib17PERFECT_LIBRARIESSS">PERFECT_LIBRARIES</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:v10PerfectLib10SQLITE_DBSSS">SQLITE_DBS</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Enums.html">Enums</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/HandlerAction.html">HandlerAction</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/JSONError.html">JSONError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/MoustacheError.html">MoustacheError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/PerfectError.html">PerfectError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/SQLiteError.html">SQLiteError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/SessionResult.html">SessionResult</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/Closeable.html">Closeable</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/HandlerAction.html">HandlerAction</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/PerfectObjectDriver.html">PerfectObjectDriver</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/String.html">String</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/UnicodeScalar.html">UnicodeScalar</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10PerfectLib10FileStderrFT_CS_4File">FileStderr()</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10PerfectLib9FileStdinFT_CS_4File">FileStdin()</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10PerfectLib10FileStdoutFT_CS_4File">FileStdout()</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10PerfectLib10empty_uuidFT_TVSs5UInt8S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0__">empty_uuid()</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10PerfectLib11random_uuidFT_TVSs5UInt8S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0__">random_uuid()</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/Closeable.html">Closeable</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/PageHandler.html">PageHandler</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/PerfectObjectDriver.html">PerfectObjectDriver</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/WebConnection.html">WebConnection</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
          <a href="../Structs.html">Structs</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Structs/GenerateFromPointer.html">GenerateFromPointer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SessionConfiguration.html">SessionConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs.html#/s:V10PerfectLib20SocketFileDescriptor">SocketFileDescriptor</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>WebRequest</h1>
              <div class="declaration">
                <div class="Swift">
                  <pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">WebRequest</span></code></pre>

                </div>
              </div>
            <p>Provides access to all incoming request data. Handles the following tasks:
- Parsing the incoming HTTP request
- Providing access to all HTTP headers &amp; cookies
- Providing access to all meta headers which may have been added by the web server
- Providing access to GET &amp; POST arguments
- Providing access to any file upload data
- Establishing the document root, from which response files are located</p>

<p>Access to the current WebRequest object is generally provided through the corresponding WebResponse object</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC10PerfectLib10WebRequest11queryParamsGSaTSSSS__"></a>
                    <a name="//apple_ref/swift/Property/queryParams" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC10PerfectLib10WebRequest11queryParamsGSaTSSSS__">queryParams</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A tuple array containing each GET/search/query parameter name/value pair</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">lazy</span> <span class="k">var</span> <span class="nv">queryParams</span><span class="p">:</span> <span class="p">[(</span><span class="kt">String</span><span class="p">,</span> <span class="kt">String</span><span class="p">)]</span> <span class="o">=</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC10PerfectLib10WebRequest11fileUploadsGSaCCS_10MimeReader8BodySpec_"></a>
                    <a name="//apple_ref/swift/Property/fileUploads" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC10PerfectLib10WebRequest11fileUploadsGSaCCS_10MimeReader8BodySpec_">fileUploads</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>An array of <code>MimeReader.BodySpec</code> objects which provide access to each file which was uploaded</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">lazy</span> <span class="k">var</span> <span class="nv">fileUploads</span><span class="p">:</span> <span class="p">[</span><span class="kt">MimeReader</span><span class="o">.</span><span class="kt">BodySpec</span><span class="p">]</span> <span class="o">=</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC10PerfectLib10WebRequest10postParamsGSaTSSSS__"></a>
                    <a name="//apple_ref/swift/Property/postParams" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC10PerfectLib10WebRequest10postParamsGSaTSSSS__">postParams</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A tuple array containing each POST parameter name/value pair</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">lazy</span> <span class="k">var</span> <span class="nv">postParams</span><span class="p">:</span> <span class="p">[(</span><span class="kt">String</span><span class="p">,</span> <span class="kt">String</span><span class="p">)]</span> <span class="o">=</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest5paramFS0_FSSGSqSS_"></a>
                    <a name="//apple_ref/swift/Method/param(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest5paramFS0_FSSGSqSS_">param(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the first GET or POST parameter with the given name</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">param</span><span class="p">(</span><span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest5paramFS0_FTSS12defaultValueSS_SS"></a>
                    <a name="//apple_ref/swift/Method/param(_:defaultValue:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest5paramFS0_FTSS12defaultValueSS_SS">param(_:defaultValue:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the first GET or POST parameter with the given name
Returns the supplied default value if the parameter was not found</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">param</span><span class="p">(</span><span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="n">defaultValue</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest6paramsFS0_FSSGSqGSaSS__"></a>
                    <a name="//apple_ref/swift/Method/params(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest6paramsFS0_FSSGSqGSaSS__">params(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns all GET or POST parameters with the given name</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">params</span><span class="p">(</span><span class="nv">named</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">[</span><span class="kt">String</span><span class="p">]?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest6paramsFS0_FT_GSqGSaTSSSS___"></a>
                    <a name="//apple_ref/swift/Method/params()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest6paramsFS0_FT_GSqGSaTSSSS___">params()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns all GET or POST parameters</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">params</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="p">[(</span><span class="kt">String</span><span class="p">,</span><span class="kt">String</span><span class="p">)]?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest14httpConnectionFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/httpConnection()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest14httpConnectionFS0_FT_SS">httpConnection()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the HTTP_CONNECTION parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">httpConnection</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"HTTP_CONNECTION"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest10httpCookieFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/httpCookie()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest10httpCookieFS0_FT_SS">httpCookie()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the HTTP_COOKIE parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">httpCookie</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"HTTP_COOKIE"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest8httpHostFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/httpHost()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest8httpHostFS0_FT_SS">httpHost()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the HTTP_HOST parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">httpHost</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"HTTP_HOST"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest13httpUserAgentFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/httpUserAgent()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest13httpUserAgentFS0_FT_SS">httpUserAgent()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the HTTP_USER_AGENT parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">httpUserAgent</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"HTTP_USER_AGENT"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest16httpCacheControlFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/httpCacheControl()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest16httpCacheControlFS0_FT_SS">httpCacheControl()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the HTTP_CACHE_CONTROL parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">httpCacheControl</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"HTTP_CACHE_CONTROL"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest11httpRefererFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/httpReferer()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest11httpRefererFS0_FT_SS">httpReferer()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the HTTP_REFERER parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">httpReferer</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"HTTP_REFERER"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest12httpReferrerFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/httpReferrer()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest12httpReferrerFS0_FT_SS">httpReferrer()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the HTTP_REFERER parameter but using the proper <q>referrer</q> spelling for pedants.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">httpReferrer</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"HTTP_REFERER"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest10httpAcceptFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/httpAccept()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest10httpAcceptFS0_FT_SS">httpAccept()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the HTTP_ACCEPT parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">httpAccept</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"HTTP_ACCEPT"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest18httpAcceptEncodingFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/httpAcceptEncoding()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest18httpAcceptEncodingFS0_FT_SS">httpAcceptEncoding()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the HTTP_ACCEPT_ENCODING parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">httpAcceptEncoding</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"HTTP_ACCEPT_ENCODING"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest18httpAcceptLanguageFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/httpAcceptLanguage()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest18httpAcceptLanguageFS0_FT_SS">httpAcceptLanguage()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the HTTP_ACCEPT_LANGUAGE parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">httpAcceptLanguage</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"HTTP_ACCEPT_LANGUAGE"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest17httpAuthorizationFS0_FT_GVSs10DictionarySSSS_"></a>
                    <a name="//apple_ref/swift/Method/httpAuthorization()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest17httpAuthorizationFS0_FT_GVSs10DictionarySSSS_">httpAuthorization()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the HTTP_AUTHORIZATION with all elements having been parsed using the <code>String.parseAuthentication</code> extension function.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">httpAuthorization</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span><span class="kt">String</span><span class="p">]</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest13contentLengthFS0_FT_Si"></a>
                    <a name="//apple_ref/swift/Method/contentLength()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest13contentLengthFS0_FT_Si">contentLength()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the CONTENT_LENGTH parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">contentLength</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Int</span> <span class="p">{</span> <span class="k">return</span> <span class="kt">Int</span><span class="p">(</span><span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"CONTENT_LENGTH"</span><span class="p">]</span> <span class="p">??</span> <span class="s">"0"</span><span class="p">)</span> <span class="p">??</span> <span class="mi">0</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest11contentTypeFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/contentType()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest11contentTypeFS0_FT_SS">contentType()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the CONTENT_TYPE parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">contentType</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"CONTENT_TYPE"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest4pathFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/path()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest4pathFS0_FT_SS">path()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the PATH parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">path</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"PATH"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest14pathTranslatedFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/pathTranslated()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest14pathTranslatedFS0_FT_SS">pathTranslated()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the PATH_TRANSLATED parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">pathTranslated</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"PATH_TRANSLATED"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest11queryStringFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/queryString()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest11queryStringFS0_FT_SS">queryString()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the QUERY_STRING parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">queryString</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"QUERY_STRING"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest10remoteAddrFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/remoteAddr()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest10remoteAddrFS0_FT_SS">remoteAddr()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the REMOTE_ADDR parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">remoteAddr</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"REMOTE_ADDR"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest10remotePortFS0_FT_Si"></a>
                    <a name="//apple_ref/swift/Method/remotePort()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest10remotePortFS0_FT_Si">remotePort()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the REMOTE_PORT parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">remotePort</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Int</span> <span class="p">{</span> <span class="k">return</span> <span class="kt">Int</span><span class="p">(</span><span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"REMOTE_PORT"</span><span class="p">]</span> <span class="p">??</span> <span class="s">"0"</span><span class="p">)</span> <span class="p">??</span> <span class="mi">0</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest13requestMethodFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/requestMethod()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest13requestMethodFS0_FT_SS">requestMethod()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the REQUEST_METHOD parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">requestMethod</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"REQUEST_METHOD"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest10requestURIFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/requestURI()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest10requestURIFS0_FT_SS">requestURI()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the REQUEST_URI parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">requestURI</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"REQUEST_URI"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest14scriptFilenameFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/scriptFilename()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest14scriptFilenameFS0_FT_SS">scriptFilename()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the SCRIPT_FILENAME parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">scriptFilename</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SCRIPT_FILENAME"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest10scriptNameFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/scriptName()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest10scriptNameFS0_FT_SS">scriptName()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the SCRIPT_NAME parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">scriptName</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SCRIPT_NAME"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest9scriptURIFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/scriptURI()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest9scriptURIFS0_FT_SS">scriptURI()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the SCRIPT_URI parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">scriptURI</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SCRIPT_URI"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest9scriptURLFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/scriptURL()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest9scriptURLFS0_FT_SS">scriptURL()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the SCRIPT_URL parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">scriptURL</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SCRIPT_URL"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest10serverAddrFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/serverAddr()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest10serverAddrFS0_FT_SS">serverAddr()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the SERVER_ADDR parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">serverAddr</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SERVER_ADDR"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest11serverAdminFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/serverAdmin()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest11serverAdminFS0_FT_SS">serverAdmin()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the SERVER_ADMIN parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">serverAdmin</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SERVER_ADMIN"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest10serverNameFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/serverName()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest10serverNameFS0_FT_SS">serverName()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the SERVER_NAME parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">serverName</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SERVER_NAME"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest10serverPortFS0_FT_Si"></a>
                    <a name="//apple_ref/swift/Method/serverPort()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest10serverPortFS0_FT_Si">serverPort()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the SERVER_PORT parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">serverPort</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Int</span> <span class="p">{</span> <span class="k">return</span> <span class="kt">Int</span><span class="p">(</span><span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SERVER_PORT"</span><span class="p">]</span> <span class="p">??</span> <span class="s">"0"</span><span class="p">)</span> <span class="p">??</span> <span class="mi">0</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest14serverProtocolFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/serverProtocol()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest14serverProtocolFS0_FT_SS">serverProtocol()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the SERVER_PROTOCOL parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">serverProtocol</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SERVER_PROTOCOL"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest15serverSignatureFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/serverSignature()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest15serverSignatureFS0_FT_SS">serverSignature()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the SERVER_SIGNATURE parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">serverSignature</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SERVER_SIGNATURE"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest14serverSoftwareFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/serverSoftware()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest14serverSoftwareFS0_FT_SS">serverSoftware()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the SERVER_SOFTWARE parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">serverSoftware</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SERVER_SOFTWARE"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest8pathInfoFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/pathInfo()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest8pathInfoFS0_FT_SS">pathInfo()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the PATH_INFO parameter if it exists or else the SCRIPT_NAME parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">pathInfo</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"PATH_INFO"</span><span class="p">]</span> <span class="p">??</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"SCRIPT_NAME"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest16gatewayInterfaceFS0_FT_SS"></a>
                    <a name="//apple_ref/swift/Method/gatewayInterface()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest16gatewayInterfaceFS0_FT_SS">gatewayInterface()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Provides access to the GATEWAY_INTERFACE parameter.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">gatewayInterface</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"GATEWAY_INTERFACE"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest7isHttpsFS0_FT_Sb"></a>
                    <a name="//apple_ref/swift/Method/isHttps()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest7isHttpsFS0_FT_Sb">isHttps()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns true if the request was encrypted over HTTPS.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">isHttps</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">return</span> <span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="s">"HTTPS"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span> <span class="o">==</span> <span class="s">"on"</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest6headerFS0_FSSGSqSS_"></a>
                    <a name="//apple_ref/swift/Method/header(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest6headerFS0_FSSGSqSS_">header(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the indicated HTTP header.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">header</span><span class="p">(</span><span class="nv">named</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">return</span> <span class="k">self</span><span class="o">.</span><span class="n">headers</span><span class="p">[</span><span class="n">named</span><span class="p">]</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest9rawHeaderFS0_FSSGSqSS_"></a>
                    <a name="//apple_ref/swift/Method/rawHeader(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest9rawHeaderFS0_FSSGSqSS_">rawHeader(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the raw request parameter header</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">rawHeader</span><span class="p">(</span><span class="nv">named</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">return</span> <span class="k">self</span><span class="o">.</span><span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span><span class="p">[</span><span class="n">named</span><span class="p">]</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10PerfectLib10WebRequest3rawFS0_FT_GVSs10DictionarySSSS_"></a>
                    <a name="//apple_ref/swift/Method/raw()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10PerfectLib10WebRequest3rawFS0_FT_GVSs10DictionarySSSS_">raw()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a Dictionary containing all raw request parameters.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="Swift">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">raw</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Dictionary</span><span class="o">&lt;</span><span class="kt">String</span><span class="p">,</span> <span class="kt">String</span><span class="o">&gt;</span> <span class="p">{</span> <span class="k">return</span> <span class="k">self</span><span class="o">.</span><span class="n">connection</span><span class="o">.</span><span class="n">requestParams</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-11-04)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
